package com.sg.dto.biz.bff.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc BffDashboardOneMenuDto
 * @使用场景
 */
@Data
public class BffDashboardOneMenuDto implements Serializable {

    /**
     * 大屏一级导航编码
     */
    @ApiModelProperty("大屏一级导航编码")
    private String dashboardOneMenuCode;

    /**
     * 大屏一级导航名称
     */
    @ApiModelProperty("大屏一级导航名称")
    private String dashboardOneMenuName;

    /**
     * 大屏一级导航图标
     */
    @ApiModelProperty("大屏一级导航图标")
    private String dashboardOneMenuIcon;
    /**
     * 大屏一级导航别名
     */
    @ApiModelProperty("大屏一级导航别名")
    private String dashboardOneMenuAlias;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffDashboardOneMenuDto that = (BffDashboardOneMenuDto) o;
        return dashboardOneMenuCode == that.dashboardOneMenuCode && dashboardOneMenuName == that.dashboardOneMenuName && dashboardOneMenuIcon == that.dashboardOneMenuIcon && dashboardOneMenuAlias == that.dashboardOneMenuAlias;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), dashboardOneMenuCode, dashboardOneMenuName, dashboardOneMenuIcon, dashboardOneMenuAlias);
    }

}
